Method and apparatus for calibrating write timing in a memory system

ABSTRACT

A system that calibrates timing relationships between signals involved in performing write operations is described. This system includes a memory controller which is coupled to a set of memory chips, wherein each memory chip includes a phase detector configured to calibrate a phase relationship between a data-strobe signal and a clock signal received at the memory chip from the memory controller during a write operation. Furthermore, the memory controller is configured to perform one or more write-read-validate operations to calibrate a clock-cycle relationship between the data-strobe signal and the clock signal, wherein the write-read-validate operations involve varying a delay on the data-strobe signal relative to the clock signal by a multiple of a clock period.

RELATED APPLICATIONS

This application is a Continuation application of, and hereby claimspriority under 35 U.S.C. §120 to, pending U.S. patent application Ser.No. 12/049,928, entitled “Method and Apparatus for Calibrating WriteTiming in a Memory System,” filed on Mar. 17, 2008, by Thomas J.Giovannini, Alok Gupta, Ian Shaeffer and Steven C. Woo (atty. docket no.RBS2.P145) The present application further claims priority under 35U.S.C. §119 to U.S. Provisional Patent Application No. 61/016,317, filedDec. 21, 2007 (Atty. Docket No. RBS2.P145P), to which the Ser. No.12/049,928 parent application also claims priority.

BACKGROUND Field

The present embodiments generally relate to techniques for calibratingthe timing of signals involved in performing write operations to amemory for a computer system.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates an embodiment of a computer system.

FIG. 2 illustrates an embodiment of a phase detector.

FIG. 3 presents a flow chart illustrating an embodiment of amemory-timing calibration process.

FIG. 4 presents a flow chart illustrating an embodiment of awrite-read-verify process to calibrate memory timing.

FIG. 5 presents a flow chart illustrating an example of a process forcalibrating a read-data-alignment setting.

FIG. 6 presents a flow chart illustrating another example of a processfor calibrating a read-data-alignment setting.

FIG. 7 presents a flow chart illustrating another example of amemory-timing calibration process.

FIG. 8 presents a graph illustrating pass-fail regions.

FIG. 9 illustrates an embodiment of a modified phase-detector circuit.

FIG. 10 presents a timing diagram illustrating an example of acalibration process.

FIG. 11 illustrates a variation of a calibration phase-detector circuitalong with an associated timing diagram.

FIG. 12 presents a flow chart illustrating an example of a write-timingcalibration process.

FIG. 13 is a block diagram illustrating an embodiment of a system.

DETAILED DESCRIPTION

The following description is presented to enable any person skilled inthe art to make and use the disclosed embodiments, and is provided inthe context of a particular application and its requirements. Variousmodifications to the disclosed embodiments will be readily apparent tothose skilled in the art, and the general principles defined herein maybe applied to other embodiments and applications without departing fromthe spirit and scope of the present description. Thus, the presentdescription is not intended to be limited to the embodiments shown, butis to be accorded the widest scope consistent with the principles andfeatures disclosed herein.

Embodiments of an apparatus that calibrates timing relationships betweensignals involved in performing write operations are described. Theseembodiments include a memory controller which is coupled to a set ofmemory chips. Each of these memory chips includes a phase detectorconfigured to enable calibration of a phase relationship between adata-strobe signal and a clock signal received at the memory chip fromthe memory controller. Furthermore, the memory controller is configuredto perform one or more write-read-validate operations to calibrate aclock-cycle relationship between the data-strobe signal and the clocksignal, wherein the write-read-validate operations involve varying adelay on the data-strobe signal relative to the clock signal by amultiple of a clock period.

In some embodiments, the set of memory chips are coupled to the memorycontroller through a fly-by topology, wherein the clock signal is routedfrom the memory controller to the set of memory chips in a multi-dropfashion along a “fly-by path,” and wherein data signals and thedata-strobe signal are routed from the memory controller to the set ofmemory chips through direct connections. Note that a “fly-by delayseparation” which results from a difference in delay between the clocksignal on the fly-by path and the data-strobe signal on a direct pathcan exceed one clock period. In some embodiments, the memory chips arecalibrated in order of increasing delay along the fly-by path.

In some embodiments, while calibrating the phase relationship betweenthe data-strobe signal and the clock signal, the memory controller isconfigured to assert a pulse on the data-strobe signal at varying delaysrelative to the clock signal and to look for a transition at the outputof the phase detector, wherein the transition indicates that thedata-strobe signal is aligned with the clock signal.

In some embodiments, while calibrating the clock-cycle relationship, thememory controller is configured to successively: vary a delay on thedata-strobe signal relative to the clock signal by a multiple of a clockperiod; write a value to a specific location in the memory chip; read avalue from the specific location in the memory chip; and determinewhether the data-strobe signal and the clock signal are calibrated byvalidating that the value read from the specific location matches thevalue written to the specific location.

In some embodiments, the apparatus is configured to sequentiallycalibrate all memory chips in the set of memory chips.

In some embodiments, the calibration is performed at full memory speedusing robust data patterns.

In some embodiments, the memory controller is additionally configured toadjust a timing relationship between the data-strobe signal and thedata-strobe enable signal during a read operation.

Some embodiments provide another system for calibrating timingrelationships between signals involved in performing write operations ina memory system. During a calibration mode, this system receives signalsat a memory chip in a set of memory chips, wherein the signals include aclock signal, a marking signal and a data-strobe signal from a memorycontroller, and wherein the marking signal includes a pulse which marksa specific clock cycle in the clock signal. Next, the system facilitatescalibration of a timing relationship between the data-strobe signal andthe clock signal by using the marking signal to window the specificclock cycle in the clock signal, thereby generating a windowed clocksignal. Next, the system uses the data-strobe signal to capture thewindowed clock signal at a phase detector on the memory chip. Finally,the system returns the captured windowed clock signal to the memorycontroller so that the memory controller can calibrate the timingrelationship.

In some embodiments, the marking signal is communicated from the memorycontroller to the memory through a selected signal line on the fly-bypath, wherein the selected signal line carries another signal when thememory system is not in the calibration mode.

In some embodiments, the selected signal line carries a write-enablesignal when the memory system is not in the calibration mode.

In some embodiments, using the data-strobe signal to capture thewindowed clock signal involves using the data strobe signal to clock thewindowed clock signal into a flip-flop.

In some embodiments, a semiconductor memory device that facilitatescalibrating timing relationships between signals involved in performingwrite operations is disclosed. The memory device includes a clock inputto receive a clock signal. In addition, the memory device includes afirst input to receive a marking signal from a memory controller. Themarking signal includes a pulse which marks a specific clock cycle inthe clock signal. The memory device also includes: a second input toreceive a data-strobe signal from the memory controller; and a phasedetector, which uses the marking signal to window the specific clockcycle in the clock signal, the phase detector also uses the data-strobesignal to capture the windowed clock cycle. The memory device includesan output which provides the captured windowed clock cycle as a feedbacksignal to the memory controller.

In some embodiments a memory controller is coupled to a memory chip thatreceives a clock signal, and includes a calibration mode to calibrate aclock-cycle relationship between the data-strobe signal and a clocksignal by iteratively: varying a delay on the data-strobe signalrelative to the clock signal by a multiple of a clock period; writing afirst value to a specific location in the memory chip; reading a secondvalue from the specific location in the memory chip; and determiningwhether the data-strobe signal and the clock signal are calibrated byvalidating that the value read from the specific location matches thevalue written to the specific location.

In some embodiments, the system generates the windowed clock signal byusing the rising edge of the clock signal to clock the marking signalthrough a cascade of flip-flops whose overall latency represents theDRAM write latency. The output of this cascade is then registered on thefalling edge of the clock to create the phase-detector enable signal.Next, the system generates the windowed clock signal by logically ANDingthe phase-detector enable signal with the clock signal.

Computer System

As memory systems begin to operate at extremely high data rates (forexample, greater than 1000 Mega transfers per second (“MT/s”)), a“fly-by” memory topology may be used to achieve the required level ofsignaling performance. For example, see computer system 100 illustratedin FIG. 1, which includes a processor 104 that communicates with a DualInline Memory Module (“DIMM”) 106 through a memory controller 102. Thiscomputer system has a fly-by layout topology, in which control signals,including one or more request (RQ) signal(s) and a clock (CK) signal,are routed from memory controller 102 to multiple synchronous dynamicrandom access memory (“SDRAM” or “DRAM”) chips 110-117. In thisembodiment, the control signals and clock signal within DIMM 106 arecoupled, in a multi-drop fashion, to each of the DRAM chips 110-117using a fly-by path 108. Request signals may include address signals andare propagated over signal lines which are, in an embodiment,trace-length matched relative to one-another and the clock signal line.The request signals and the clock signal propagate along the fly-by path108 and are received by each of the DRAM chips 110-117 in sequence. Atthe same time, the data-strobe (DQS) and data (DQ) signals are routeddirectly to each of the DRAM chips 110-117 in DIMM 106, and hence do notincur the delay through the fly-by path.

For each DRAM chip, the data-strobe (DQS) and data (DQ) signals, in oneembodiment are routed point-to-point between a dedicated DQ interfaceport on the memory controller 102 and a DQ interface. In a system thatsupports multiple ranks, the direct connection may involve routingdata-strobe (DQS) and data (DQ) signals between the dedicated DQinterface port on the memory controller 102 and connection points ofeach DQ interface for corresponding DRAM chips in each rank. A “rank” isa grouping of DRAM chips that contribute to a memory transfer thatoccurs in response to a memory access command given to the DRAM chips ina rank. In a system that supports multiple DIMM modules (each havingeither with a single or dual ranks), the direct connection may involverouting between the data-strobe (DQS) and data (DQ) signals between eachdedicated DQ interface port on the memory controller and connectionpoints of each DQ interface for corresponding DRAM chips in each DIMMmodule. (Note that, throughout this specification, a “DRAM chip” may bereferred to as “DRAM”.)

In an embodiment, the data strobe signal (DQS) may be routed alongsidethe data signals (DQ) and is used at the receiver of the integratedcircuit (i.e., memory controller or DRAM) to receive the data. Forexample, in a write operation, when the memory controller istransmitting data to a DRAM, the controller sends a DQS signal alongsidethe data and the DQS signal is used at the DRAM to receive that data. Ina read operation, when a DRAM is transmitting data to the memorycontroller, the DRAM will send a DQS signal alongside the data beingtransmitted to the controller. The DQS signal, when received by thecontroller is then used to strobe in the data which accompanied that DQSsignal. DQS signals may be transmitted over a single bi-directionalsignal line for read and write operations, or separate unidirectionalsignal lines may be provided for respective read/write operations.

In an embodiment featuring a memory system configured with a fly-bylayout topology, the RQ/CK propagation delay increases to each DRAM thatreceives RQ and CK signals from the fly-by signal path. This causes anincreasing skew between RQ/CK and DQ/DQS signals received at eachsuccessive DRAM. To compensate for this effect during writetransactions, memory controller 102 introduces increasing DQ/DQStransmit delay relative to when RQ/CK is transmitted for each successiveDRAM. Similarly, during read transactions memory controller 102introduces increasing DQS read-enable receive sample delays for eachsuccessive DRAM. These write and read delays, which are introduced bymemory controller 102, are referred to as “write-levelization” and“read-levelization” delays, respectively.

Also, during read transactions, the optimum read-data-alignment settingmay increase for each successive DRAM that receives RQ and CK signalsfrom the fly-by signal path, with the DRAM at the end of fly-by signalpath requiring the largest read-data-alignment setting. Once thislargest read-data-alignment setting is determined, it can be used tocalculate settings for all the DQ/DQS groups in order to align the readdata received at each of the DQ blocks at memory controller 102.

In an embodiment, DRAM chips which are designed according to the DDR3standard (JESD79-3 as published by JEDEC Solid State TechnologyAssociation) may be provided with built-in circuitry to facilitatetiming adjustment. For example, FIG. 2 illustrates a phase-detectorcircuit within a DRAM chip 200 that facilitates phase adjustmentsbetween a clock signal on the fly-by path and a data-strobe signal on adirect path. In this phase-detector circuit, operational amplifier 209converts a differential clock signal comprised of CK signal 201 and CK#signal 202 into a non-differential clock signal 212. Similarly,operational amplifier 210 converts a differential strobe signalcomprised of DQS signal 203 and DQS# signal 204 into a non-differentialdata-strobe signal 214. The non-differential data-strobe signal 214 isthen used to clock the non-differential clock signal 212 into aflip-flop 206. The output of flip-flop 206 feeds through a feedback path211 and then through a multiplexer 207 and a driver 208 onto a data lineDQ 205. Note that multiplexer 207 selectively feeds the output offlip-flop 206 onto data line DQ 205 based on a value of a leveling-modesignal 213. This allows memory controller 102 to determine whether theclock signal 212 and data-strobe signal 214 are phase-aligned, which inturn, enables memory controller 102 (FIG. 1) to calibrate the phaserelationship between the data-strobe signal 214 and the clock signal 212by asserting a pulse on data-strobe signal 214 at varying delaysrelative to clock signal 212 and looking for a transition at the outputof the phase detector which appears on data line DQ 205.

In the embodiment described above in reference to FIG. 2, situations mayexist where the resulting timing adjustment provided by theabove-described phase-detector circuit may not be correct becausewrite/read data integrity is not verified during the adjustment process.In particular, if the fly-by delay separation between the clock signaland the data-strobe signal exceeds one clock period, the above-describedtiming adjustment process will adjust the phase relationship properly,but the timing adjustment may be off by a multiple of a clock period.

To account for such situations, embodiments are presented below thatverify write/read data integrity during the timing-adjustment process.In doing so, they write and read robust data patterns to and from theDRAM of interest, as well as simultaneously communicating data patternsto the other DRAMs in the topology, so that realistic switching noiseeffects may be accounted for during the timing-adjustment process.

DRAM Calibration Process

FIG. 3 presents a flow chart illustrating an embodiment of a memorytiming calibration process. In this embodiment, there are a fewassumptions for this calibration process: (1) It is assumed that thetiming relationship between request (RQ) and clock (CK) signals has beenset to compensate for the estimated average skew between RQ and CK; (2)It is assumed that the timing relationship between data signals (DQ) anddata-strobe signal (DQS) for each DQ/DQS group has been set tocompensate for the estimated average skew between DQ and DQS; (3) It isalso assumed that DRAMs will be processed in successive order ofincreasing RQ/CK delay; and (4) It is additionally assumed that the skewbetween any two DQ/DQS groups is much less than one CK cycle.

Referring to FIG. 3, the process starts by performing a read-calibration(read-leveling) process (operation 302) in which a register or otherstorage on each DRAM (of a set of DRAMS coupled to the flyby RQ anddirect DQ topology as shown in FIG. 1) provides a predefined datapattern to the controller. The DRAM situated closest to the controlleron the fly-by RQ bus and (thus having the shortest RQ/CK flight timedelay) transmits the predefined data pattern before the DRAM situatedfurthest to the controller on the fly-by RQ bus (thus having the longestRQ/CK flight time delay). The controller can then determine the receivetiming offset for each receive DQ block in the controller by, forexample, adjusting its read data strobe enable delay to be properlyaligned with the received read data strobe whose arrival time resultsfrom the propagation delay of a read command being received at thecorresponding DRAM.

If the system does not pass the calibration process in operation 302,the system signals an error (operation 304). Otherwise, the systemperforms a write-calibration (write-leveling) process (operation 306).(Note that this write-calibration process, in an embodiment, may makeuse of the phase-detector circuit located in each DRAM as is illustratedin FIG. 2.) In an embodiment the write calibration process involvesproviding a DQS strobe signal that each DRAM (of a set of DRAMS coupledto the flyby RQ and direct DQ topology as shown in FIG. 1) uses tosample the clock signal CK and outputs the result over the direct DQlines back to the controller. In the write-calibration process, thecontroller can then determine transmit timing offsets for each transmitDQ block on the controller to, for example, levelize write data skewthat results from the propagation delay of a corresponding write commandbeing received in succession at each DRAM.

After the write calibration process (operation 306), the clock anddata-strobe signals should be phase-aligned, but the timing of thesesignals may still be misaligned by a multiple of a clock period. Inorder to remedy this problem, in an embodiment, the system performs anextended write-read-verify write-calibration optimization (operation308). (This process is described in more detail below with reference toFIG. 4.) The system can additionally perform an extendedwrite-read-verify read-calibration optimization (operation 310).

FIG. 4 presents a flow chart illustrating an example of awrite-read-verify process to calibrate write timing. At the start ofthis process, the system sets the delay of the data-strobe signalrelative to the clock signal to the value obtained in the writecalibration process (operation 420). This assumes that the writecalibration process began its DQS delay search with the minimum delaysetting. Next, the system writes a value to a specific location in theDRAM (operation 422) and then reads a value from the same location(operation 424). Then, the system determines if the value written to thememory location and the value read from the memory location match(operation 426). If not, the system increases the delay by one clockperiod (operation 428) and returns to operation 422. On the other hand,if the values match, the write operation was successful, which indicatesthat the system is calibrated and hence the calibration process iscomplete.

Read-Data-Alignment Calibration

In an embodiment, the system additionally has to be calibrated tocompensate for misalignment of read data from different DRAM devices.Read data from successive DRAM devices, configured in a system that usesthe fly-by topology, arrive at the memory controller with successivelyincreasing delay. In an embodiment, a read alignment process involvesqueuing read data within successive DQ receiver blocks at thecontroller.

After read data from different DRAM devices arrives at the memorycontroller with successively increasing delay, it is received by acircuit on the controller that temporary stores the read data before theread data is internally aligned to the controller clock and thenprocessed further. “Read-alignment” (also referred to as“read-data-alignment”) involves synchronizing the read data to the sameclock signal as the read data comes out of, for example a first in,first out buffer (“FIFO”) in the memory controller and is provided tothe core of the memory controller. This clock signal is not the same asthe read data strobe enable signal which is different for each slice ofdata and enables data to be written into the FIFO. A buffer circuitand/or flip-flop circuit elements may be used in place of or inconjunction with the FIFO.

More specifically, FIG. 5 presents a flow chart illustrating anembodiment of a process for calibrating a read-data-alignment setting.The system starts by setting all DRAMs to a minimum possibleread-data-alignment setting (operation 502). Next, the system calibratesa single DRAM using the technique described previously in FIG. 3(operation 504) and then determines whether the DRAM passes thecalibration process (operation 506). If the DRAM does not pass thecalibration process, the system increases the currentread-data-alignment setting (operation 508) and returns to operation504. Otherwise, if the DRAM passes the calibration process, the systemdetermines if there exists another DRAM to calibrate (operation 510). Ifso, the system returns to operation 504 to calibrate the next DRAM.Otherwise, the system determines the largest read-data-alignment settingacross all DRAMs (operation 512) and sets to read-data-alignment settingfor all DRAMs to this largest setting (operation 514).

Next, the system determines if there exists another rank of DRAMs tocalibrate (operation 516). If so, the system returns to operation 502 tocalibrate the next rank of DRAMs. Otherwise, if there are no additionalranks of DRAMs, the process is complete.

In an alternative embodiment, which is illustrated in FIG. 6, theread-alignment setting is initialized to a maximum possible setting andis then decreased. More specifically, in this alternative embodiment,the system starts by setting all DRAMs to a maximum possibleread-data-alignment setting (operation 602). Next, the system calibratesa single DRAM using the technique described previously in FIG. 3(operation 604) and determines if there exists another DRAM to calibrate(operation 606). If so, the system returns to operation 604 to calibratethe next DRAM. Otherwise, the system determines the read-enable-delaysetting for each DRAM (operation 608) and then determines a largestread-data-alignment setting across all DRAMs (operation 610). The systemthen sets the read-data-alignment setting for all DRAMs to this largestsetting (operation 612).

Next, the system determines if there exists another rank of DRAMs tocalibrate (operation 614). If so, the system returns to operation 602 tocalibrate the next rank of DRAMs. Otherwise, if there are no additionalranks of DRAMs, the process is complete.

2D Write-Read-Verify Calibration Technique for a Single DRAM

FIG. 7 presents a flow chart illustrating an alternative embodiment fora memory-timing calibration process which uses a two-dimensional (“2D”)Write-Read-Verify calibration technique. This 2D search technique uses atwo-pass approach. The first pass uses coarse-step-sizes for transmitand receive phase settings (write and read levelization delays,respectively) (operation 702). Starting from the origin of the 2D searchregion, the system first incrementally steps the transmit phase. Foreach transmit phase, the system attempts to find a “coarse-pass” regionby incrementally stepping the receive phase. The system continues tostep through the transmit phase until a sufficiently large coarse-passregion is found. When this occurs, the first pass is terminated and thelatest transmit phase is used as a seed for the second pass of thetechnique.

If the system does not find a coarse-pass region and hence does not passthe first phase, the system signals an error (operation 705).

Otherwise, if the system successfully finds a coarse-pass region, thesystem performs a fine-step-size search for the DQS read-enable-delaycenter (operation 706), and then performs a fine-step-size search forthe DQ/DQS write-delay center (operation 708). More specifically,starting with the seed generated during the first-pass transmit phase,the second pass uses a fine step size for the receive phase setting tofind the entire pass region around the first-pass transmit phase. Itthen finds the center of this region, and uses the center receive phaseas the optimum receive phase setting. Starting at the center receivephase, the second pass then uses a fine step size for the transmit phasesetting to find the entire pass region around the center receive phasesetting. The system then finds the center of this region, and uses thecenter transmit phase as the transmit phase setting.

Note that the above-described 2D calibration technique can for examplebe used with DDR2 SDRAM chips or other types of memory devices. Hence,the flow diagram of FIG. 5 can be used by substituting the 2D techniqueinto operation 504. Alternatively, the flow diagram of FIG. 6 can beused by substituting the 2D technique into operation 604.

FIG. 8 presents a graph illustrating pass-fail regions. Note that theabove-described 2D search will identify a 2D pass region 802 for allpossible combinations of read-enable delays and write-enable delays.

Phase-Detector Circuit 1

FIG. 9 illustrates an embodiment of a phase-detector circuit which, forexample, may facilitate write timing calibration for DRAM fly-by delayseparations greater than one clock cycle. In this phase-detectorcircuit, a marking pulse is received on, for example, a write enable(“WE#”) signal line 900, and this marking pulse is fed through twoD-flops 901 and 902, which are clocked on alternate rising and fallingedges of the clock signal 201. This generates a phase-detector enablesignal (PDEN) 906 with a window for the desired time slot. PDEN signal906 is then ANDed with clock signal 904 to generate a windowed clocksignal 908. In an embodiment WE# is routed and propagates alongside CKalong the fly-by path.

Data-strobe signal (DQS) 203 is then used to clock the windowed clocksignal 908 into a flip-flop 905. The output of flip-flop 905 feedsthrough a feedback path 905 and then through a multiplexer 918 onto adata line DQ 205. Note that multiplexer 918 selectively feeds the outputof flip-flop 206 onto data line DQ 205 based on a value of aleveling-mode signal 910.

This feedback signal enables the memory controller to determine whetherthe clock signal 201 and DQS 203 are aligned, which in turn, enables thememory controller to calibrate the timing relationship between the DQS203 and the clock signal 201 by asserting a pulse on DQS 203 at varyingdelays relative to clock signal 201 and looking for a transition at theoutput of the phase detector which appears on data line DQ 205.

Note that any command or control line on the fly-by path can be used tocommunicate this marking pulse. Hence, it is not necessary to use thespecific command line WE#, because another command or control line canbe used in place of the WE# command line for this purpose (for example,command lines such as RAS#, CAS#, or control lines such as chip select(CS#) or clock enable (CKE#) may be used in place of WE# in variousembodiments). In this embodiment, the WE# command line is used since itis associated with a memory write function in normal operation (i.e.,non calibration mode operation).

After windowed clock signal 908 is generated, DQS signal 203 is used toclock windowed clock signal 908 into a flip-flop 905. In similar fashionto the circuit illustrated in FIG. 2, the output of flip-flop 905 feedsthrough a feedback path 907, in through a multiplexer 918, and onto adata line DQ 205. During this process, multiplexer 918 selectively feedsthe output of flip-flop 905 onto data line DQ 205 based on a value of aleveling-mode signal 910. Hence, during a leveling mode of operation,the memory controller is able to determine whether the windowed clocksignal 908 and data-strobe signal DQS 203 are phase-aligned. Thisenables the memory controller to calibrate the timing relationshipbetween the DQS signal 203 and the windowed clock signal 908 byasserting a pulse on DQS signal 203 at varying delays relative towindowed clock signal 908 and by looking for a transition at the outputof the phase detector which appears on data line DQ 205.

However, in the case where the DRAM fly-by delay separation exceeds oneclock cycle, the circuit illustrated in FIG. 9 will only generate azero-to-one transition if DQS signal 203 and clock signal 201 are phasealigned and are additionally aligned on the proper clock cycle. This isunlike the circuit illustrated in FIG. 2 which generates a zero-to-onetransition in cases where DQS signal 203 and clock signal 201 are phasealigned but are not aligned on the proper clock cycle.

Calibration Process

FIG. 10 presents a timing diagram illustrating an example of acalibration process which uses the circuitry illustrated in FIG. 9. Thetop portion of FIG. 10 illustrates the timing of signals at the memorycontroller and the bottom portion of FIG. 10 illustrates the timing ofsignals at the memory chip (DRAM). In FIG. 10, the controller sends aclock signal (CK 201) and a data-strobe signal (DQS 203) to the DRAM.

As is illustrated in FIG. 10, a DQS pulse is asserted by the controller.In this embodiment, CK and all DQS signals to the DIMM containing theDRAM are routed with equal length traces on the circuit board. After thetime of flight on the circuit board, CK and DQS propagate to each DRAMin the DIMM. During this process, the DQS signals are routed with equallength to each DRAM within the DIMM. However, the CK is routed to eachDRAM successively along a fly-by path. This results in successivelyincreasing skew between CK and DQS at each DRAM along the fly-by path.As memory clock speeds continue to increase, these DRAM fly-by delayseparations begin to exceed one clock cycle. This causes CK-versus-DQSskews which are greater than one clock cycle. In an embodiment, at leastone command signal (e.g., WE#) is routed and propagates alongside CKalong the fly-by path.

As is illustrated by the arrow attached to the DQS pulse at the DRAM inFIG. 10, the calibration process sweeps the DQS pulse delay relative toCK to find a zero-to-one transition at the output of the standard phasedetector. Detection of a zero-to-one transition is an indicator ofcorrect CK vs. DQS phase alignment.

Note that the memory controller asserts the WE# signal 900 one clockcycle before the DQS pulse is asserted. After signal propagation betweenthe memory controller and the DRAM, more than one clock cycle of skewexists between CK signal 201 and DQS signal 203. As shown in thecircuitry illustrated in FIG. 9, the WE# signal 900 is staged andinverted to window the desired CK time slot. The resulting windowsignal, PDEN, is then used to prevent detections of false transitions asillustrated at the bottom of FIG. 10.

Phase Detector Circuit II

FIG. 11 illustrates an embodiment of a phase-detector circuit that maybe utilized in a DRAM, along with an associated timing diagram. Thisembodiment is similar to the embodiment illustrated in FIG. 9, exceptthat WE# signal 900 is staged through staging circuitry for the WE#signal 900 on the DRAM (instead of through flip-flop 901).

More specifically, WE# signal 900 is staged through a firstselectable-length shifter 1102 for additive latency (AL) with a delayprogrammed to be AL, and a second selectable-length shift register 1104for CAS write latency (CWL) with a delay programmed to be=CWL-1, whereinthe “1” represents the delay through flip-flop 902. Additive latency isa programmable delay between receipt of a column command (e.g., a reador write command) at the DRAM and the internal application or posting ofthat command that signifies when execution of that command is commencedinternally. Write latency is the programmable delay between the internalapplication or posting of the write command and when data associatedwith that write command is sampled by the DRAM. By using this stagingcircuitry, the memory controller can perform the write-calibrationprocess using the same write latency that results during normaloperation.

Calibration Process

FIG. 12 presents a flow chart illustrating an embodiment of a writetiming calibration process. During this process, a clock signal, amarking signal and a data-strobe signal are sent to a memory chip from amemory controller (operation 1202). Next, the marking signal is used to“window” a specific clock cycle in the clock signal (operation 1204).This generates a windowed clock signal.

Next, a pulse on the data-strobe signal is used to capture the windowedclock signal in a memory element (operation 1206). This capturedwindowed clock signal is then returned to the memory controller as afeedback signal (operation 1208).

The memory controller then uses the feedback signal to calibrate atiming relationship between the clock signal and the data-strobe signal(operation 1210). For example, this calibration process can involveasserting a pulse on the data-strobe signal at varying delays relativeto the clock signal and look for a transition at the output of the phasedetector, wherein the transition indicates that the data-strobe signalis aligned with the clock signal.

Note that the FIGS. 1-12 may include fewer components or operations, oradditional components or operations. Moreover, two or more components oroperations can be combined into a single component or operations, and/orthe position of one or more components or operations can be changed.

Additionally, components and/or functionality illustrated in FIGS. 1-12may be implemented using analog circuits and/or digital circuits.Furthermore, components and/or functionality in FIGS. 1-12 may beimplemented using hardware and/or software.

Devices and circuits described herein may be implemented usingcomputer-aided design tools available in the art, and embodied bycomputer-readable files containing software descriptions of suchcircuits. These software descriptions may be: behavioral, registertransfer, logic component, transistor and layout geometry-leveldescriptions. Moreover, the software descriptions may be stored onstorage media or communicated by carrier waves.

Data formats in which such descriptions may be implemented include, butare not limited to: formats supporting behavioral languages like C,formats supporting register transfer level (RTL) languages like Verilogand VHDL, formats supporting geometry description languages (such asGDSII, GDSIII, GDSIV, CIF, and MEBES), and other suitable formats andlanguages. Moreover, data transfers of such files on machine-readablemedia may be done electronically over the diverse media on the Internetor, for example, via email. Note that physical files may be implementedon machine-readable media such as: 4 mm magnetic tape, 8 mm magnetictape, 3½ inch floppy media, CDs, DVDs, and so on.

FIG. 13 presents a block diagram illustrating an embodiment of a system1300 that stores such computer-readable files. This system may includeat least one data processor or central processing unit (CPU) 1310,memory 1324 and one or more signal lines or communication busses 1322for coupling these components to one another. Memory 1324 may includerandom access memory and/or non-volatile memory, such as: ROM, RAM,EPROM, EEPROM, flash, one or more smart cards, one or more magnetic discstorage devices, and/or one or more optical storage devices.

Memory 1324 may store a circuit compiler 1326 and circuit descriptions1328. Circuit descriptions 1328 may include descriptions of thecircuits, or a subset of the circuits discussed above. In particular,circuit descriptions 1328 may include circuit descriptions of: one ormore memory controllers 1330, one or more memory devices 1332, one ormore phase detectors 1334, one or more flip-flops 1336, one or moreamplifiers 1338, one or more multiplexers 1340, one or more drivers1342, one or more logic circuits 1344, one or more driver circuits 1346,and/or one or more selectable-length shifters 1348.

Note that the system 1300 may include fewer components or additionalcomponents. Moreover, two or more components can be combined into asingle component and/or the position of one or more components can bechanged.

The foregoing descriptions of embodiments have been presented forpurposes of illustration and description only. They are not intended tobe exhaustive or to limit the present description to the formsdisclosed. Accordingly, many modifications and variations will beapparent to practitioners skilled in the art. Additionally, the abovedisclosure is not intended to limit the present description. The scopeof the present description is defined by the appended claims.

What is claimed is:
 1. A memory controller to control the operation of adynamic random access memory (DRAM), the memory controller comprising: acircuit to transmit a clock signal to the DRAM; a circuit to transmit astrobe signal to the DRAM, the strobe signal to convey phase informationto the DRAM for sampling data associated with the strobe signal; andcalibration logic to, in a calibration mode of operation, align at theDRAM, arrival of the strobe signal with arrival of the clock signal andcalibrate a clock cycle delay between commands received at the DRAM anddata corresponding to the commands, wherein the calibration logic delaysthe strobe signal as a delayed strobe such that it arrives at the DRAMat an edge transition of the clock signal, the calibration logic to setthe clock cycle delay for the strobe signal by iteratively write a firstdata using the delayed strobe to a specific location in the DRAM, readback second data from the specific location in which the first data waswritten, and selectively adjust the clock cycle delay by an integernumber of cycles based on whether the second data matches the firstdata.
 2. The memory controller according to claim 1, wherein thecalibration logic is to align at the DRAM, arrival of the strobe signalwith arrival of the clock signal by transmitting the strobe signal andthe clock signal with a relative phase alignment to the DRAM, receivethe feedback from the DRAM, and adjust the relative phase alignmentuntil the feedback indicates the strobe signal and clock signal areedge-aligned when received by the DRAM.
 3. The memory controlleraccording to claim 2, wherein the relative phase alignment adjustment isless than one clock cycle of the clock signal.
 4. The memory controlleraccording to claim 1, wherein a delay time of the delayed strobe isbased on feedback from the DRAM, the feedback indicating whether thestrobe signal is edge-aligned with the clock signal.
 5. The memorycontroller according to claim 1, further comprising an interface toreceive the data, wherein the feedback is received from the DRAM at theinterface to receive the data.
 6. The memory controller according toclaim 1, wherein the calibration logic selectively establishes the clockcycle delay by delaying the strobe signal by at least one cycle of theclock signal.
 7. A method of operation in a memory controller, themethod comprising: transmitting a clock signal to a dynamic randomaccess memory (DRAM); transmitting a strobe signal to the DRAM, thestrobe signal to convey phase information to the DRAM for sampling dataassociated with the strobe signal; aligning at the DRAM, arrival of thestrobe signal with arrival of the clock signal such that the strobesignal such arrives at the DRAM based on an edge transition of the clocksignal; calibrating a clock cycle delay between commands received at theDRAM and data corresponding to the commands, wherein calibrating theclock cycle delay comprises: using the delayed strobe, writing firstdata to a specific location in the DRAM; reading back second data fromthe specific location in which the first data was written; anddetermining whether the second data matches the first data; andselectively adjusting the clock cycle delay of the strobe signal by aninteger number of cycles based on whether the second data matches thefirst data.
 8. The method according to claim 7, wherein the aligning atthe DRAM, arrival of the strobe signal with arrival of the clock signalcomprises: transmitting the strobe signal and the clock signal with arelative phase alignment to the integrated circuit (IC) memory device;receiving the feedback from the DRAM, the feedback indicating whetherthe strobe signal is edge-aligned with the clock signal; adjusting therelative phase alignment based on the feedback; and iterating thetransmitting, receiving and adjusting until the feedback indicates thestrobe signal and clock signal being edge-aligned when received by theDRAM.
 9. The method according to claim 8, wherein adjusting the relativephase alignment comprises an adjustment that is less than one clockcycle of the clock signal.
 10. The method according to claim 8, whereinreceiving the feedback comprises receiving transition data from a datalink, the transition data generated by an output of a phase detector onthe DRAM.
 11. The method according to claim further comprising receivingfeedback from the DRAM, the feedback indicating whether the strobesignal is edge-aligned with the clock signal, wherein the delayed strobeis to be established based on the feedback from the DRAM.
 12. The methodaccording to claim 7, wherein selectively adjusting comprises delayingthe strobe signal by at least one cycle of the clock signal.
 13. Themethod according to claim 7, further comprising performing a readleveling operation prior to aligning at the DRAM, arrival of the strobesignal with arrival of the clock signal, the read leveling operation toestablish a timing offset to apply to a data sampler.
 14. An integratedcircuit (IC) device to control the operation of a dynamic random accessmemory (DRAM), the IC device comprising: a circuit to transmit a clocksignal to the DRAM; a circuit to transmit a strobe signal to the DRAM,the strobe signal to convey phase information to the DRAM for samplingdata associated with the strobe signal; calibration logic to, in acalibration mode of operation, align at the DRAM, arrival of the strobesignal with arrival of the clock signal, wherein the calibration logicdelays the strobe signal such that it arrives at the DRAM based on anedge transition of the clock signal, to establish a delayed strobe basedon feedback from the DRAM, the feedback indicating whether the strobesignal is edge-aligned with the clock signal; and wherein thecalibration logic is to selectively adjust the strobe signal by aninteger number of cycles, responsive to whether a first data pattern,written to a location in the DRAM, matches a second data patternretrieved from the location in the DRAM.
 15. The IC device according toclaim 14, wherein: the calibration logic is to align at the DRAM,arrival of the strobe signal with arrival of the clock signal, bytransmitting the strobe signal and the clock signal with a relativephase alignment to the DRAM, receive the feedback from the DRAM, andadjust the relative phase alignment until the feedback indicates thestrobe signal and clock signal being edge-aligned when received by theDRAM.
 16. The IC device according to claim 15, wherein the relativephase alignment adjustment is less than one clock cycle of the clocksignal.
 17. The IC device according to claim 14, wherein the feedback isreceived from the DRAM along a data link.
 18. The IC device according toclaim 14, wherein the calibration logic selectively adjusts thewrite-leveled timing relationship by delaying the strobe signal by atleast one cycle of the clock signal.
 19. The IC device according toclaim 14, wherein the calibration logic is to perform a read levelingoperation prior to the write leveling, the read leveling to establish areceiver phase offset for receiving the second data.
 20. A memorycontroller comprising: a circuit to transmit a clock signal to the DRAM;a circuit to transmit a strobe signal to the DRAM, the strobe signal toconvey phase information to the DRAM for sampling data associated withthe strobe signal; means for calibrating, in a calibration mode ofoperation, arrival of the strobe signal with arrival of the clock signalat the DRAM, such that the strobe signal is delayed and arrives at theDRAM based on an edge transition of the clock signal, to establish adelayed strobe based on feedback from the DRAM, the feedback indicatingwhether the strobe signal is edge-aligned with the clock signal; andmeans for selectively adjusting the strobe signal by an integer numberof cycles, responsive to whether a first data pattern, written to alocation in the DRAM, matches a second data pattern retrieved from thelocation in the DRAM.